package teach.aistar.service.impl;

import org.apache.ibatis.annotations.Select;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import teach.aistar.mapper.OrderDetailsMapper;
import teach.aistar.model.entity.OrdersDetails;
import teach.aistar.service.IOrderDetailsService;

import java.util.List;

@Service
@Transactional
public class OrderDetailsImpl implements IOrderDetailsService {
    @Autowired
    private OrderDetailsMapper orderDetailsMapper;
    @Override
    public List<OrdersDetails> selectDeatilsAll() {
        return orderDetailsMapper.selectDeatilsAll();
    }

    @Override
    public int deleteByOrderId(int ordersId) {
        return orderDetailsMapper.deleteByOrderId(ordersId);
    }
}
